package com.chen.facemanager.controller;

import com.chen.facemanager.bean.Device;
import com.chen.facemanager.dao.DeviceDao;
import com.chen.facemanager.service.DeviceService;
import com.chen.facemanager.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value="/device", tags="设备管理模块")
@RestController
@RequestMapping("/device")
public class DeviceController {

    @Autowired
    private DeviceService deviceService;

    @ApiOperation(value = "新增设备",notes = "新增设备")
    @PostMapping("/save")
    public void save(@RequestBody Device device){
        deviceService.save(device);
    }

}
